// pages/myPages/personalCenter/creditCard/creditCard.js
var imgUrl = '../../../../image/bankImage/'
Page({

  /**
   * 页面的初始数据
   */
  data: {
    bankList: ['icon_gongshang.png', 'icon_jianshe.png', 'icon_zhongguo.png', 'icon_zhaoshang.png','icon_beijing.png'],
    imgUrl: imgUrl
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
  this.getBankList();
  },
  getBankList:function(){
    var that = this;
    that.setData({
      bankList: that.data.bankList,
    });
  },
  addCreditCard: function (e) {
    wx.navigateTo({
      url: './addCreditCard/addCreditCard'
    })
  },
  bankCardDetailPage: function (e) {
    wx.navigateTo({
      url: './bankCardDetailPage/bankCardDetailPage'
    })
  },
  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    this.setData({
      setLang: wx.T.locale == "zh-Hans" ? wx.T.locales['zh-Hans'] : wx.T.locales['en']

    })
    wx.setNavigationBarTitle({
      title: wx.T.locale == "zh-Hans" ? wx.T.locales['zh-Hans'].BankCard : wx.T.locales['en'].BankCard
    })
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
  
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})